Skip to content

Fix 288 - Add 'cross' as option for MergeHow #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Fix 288 - Add 'cross' as option for MergeHow #289

wants to merge 2 commits into from

Conversation

alexcolemandata
Copy link

@alexcolemandata alexcolemandata commented Sep 10, 2022


  • Add 'cross' as potential value for MergeHow
  • Add test for how=cross (fails without patch)

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Sep 10, 2022

The test you added is fine. However, I was surprised that this PR was needed, as I had just recently used cross in my own code, and the type checkers didn't report an error. Turns out that pd.merge() types how as str, so would you mind making the change there as well to have it use MergeHow as the type, and then add a similar test?

@alexcolemandata
Copy link
Author

PR for pandas: pandas-dev/pandas#48513

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Oct 7, 2022

@alexc-yellowcanary Can you merge in current main, resolve conflicts, and push. In #355 we handled the issue of fixing the how argument in pd.merge(), but I'd like to use what you have here for MergeHow in there, or vice versa, dependent on which PR gets approved first.

@bashtage
Copy link
Contributor

bashtage commented Oct 7, 2022

This fix here isn't 100% correct. Need distinct joinhow and megehow types since the 4 core values are widely used, and cross is only for merge.

@bashtage
Copy link
Contributor

bashtage commented Oct 7, 2022

Test is now in #355

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Oct 7, 2022

Closed in favor of #355

@Dr-Irv Dr-Irv closed this Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MergeHow does not support "cross" joins
3 participants